﻿using System.Collections;
using System.Linq;
using System.Windows;
using Garfield.Controls;
using Garfield.Presentation.Controls;

namespace Controls
{
    /// <summary>
    /// Interaction logic for ControlsWindow.xaml
    /// </summary>
    public partial class ControlsWindow
    {
        public ControlsWindow()
        {
            InitializeComponent();
        }
    }

    class SuggestionListProvider : ISuggestionProvider
    {
        private readonly string[] suggestions = new[] { "abc", "abc1", "abc2", "abc3", "abc4", "abc5", "abc6", "abc7", "abc8", "abc9", "abc10", "abc11", "abc12", "abc13", "abc14", "abc15", "def" };

        public IEnumerable GetSuggestions(string keyword)
        {
            return keyword == string.Empty ? new string[0] : suggestions.Where(suggestion => suggestion.Contains(keyword));
        }
    }
}
